// 用于注册时的api接口页面
import unloginRegister from '@/common/utils/unloginRequest.js'

 // 1 获取医院列表
 export function getHospitalList(pageNum,pageSize,name) {
	 return unloginRegister({
		 url: '/hospital/info/list?pageNum=' + pageNum+'&pageSize='+pageSize+'&name='+name,
		 method: 'get'
	 })
 }
 
 // 2 获取医院科室列表 byid
 export function  getDepartmentList(id,pageNum,pageSize) {
 	 return unloginRegister({
 		 url: '/hospital/special/list/'+id+'?pageNum='+pageNum+'&pageSize='+pageSize,
 		 method: 'get'
 	 })
 }
 
 // 3 获取科室的门诊列表 byid
 export function  getcurrentDepLists(id,pageNum,pageSize) {
 	 return unloginRegister({
 		 url: '/hospital/outpatient/alone?pageNum='+pageNum+'&pageSize='+pageSize+'&specialId='+id,
 		 method: 'get'
 	 })
 }
 
 // 4 获取门诊医生列表 byid
 export function  getDoctorLists(specialId,outpatientId,pageNum,pageSize,name) {
	 console.log("req.js",specialId,outpatientId)
 	 return unloginRegister({
 		 url: '/hospital/doctor/list/name?specialId='+specialId+'&outpatientId='+outpatientId+'&pageNum='+pageNum+'&pageSize='+pageSize+'&name='+name,
 		 method: 'get'
 	 })
 }
